
package com.coldchain.common.msg;

import java.io.Serializable;

/**
 *
 * @param <T>
 */
public class ObjectRestResponse<T> extends BaseResponse implements Serializable {

    T data;
    public ObjectRestResponse() {

    }
    public ObjectRestResponse(T data) {
        super(200,"ok");
        this.data = data;
    }


    public ObjectRestResponse data(T data) {
        this.setData(data);
        return this;
    }
    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
